package main

import (
	"OldPackageTest/go_mysql/database/config"
	"fmt"
)

func insertRows() int64 {
	sqlStr := "insert into student (name, age) values(?,?)"
	res, err := config.DB.Exec(sqlStr, "zhangsan", 1)
	if err != nil {
		fmt.Println("update error", err)
	}
	id, _ := res.LastInsertId()
	return id
}
func main() {

}
